<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../common/modules/checkA.php");
include_once("../../../../config.php");
include_once("../controller/detail-add.php");
?>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <link href="../css/<? echo $theme_folder ?>/user.css" rel="stylesheet" type="text/css"/>
    <?php include ROOT_PATH_.'/controller/common/modules/head.php'; ?>
    <?php include 'modules/head.php'; ?>


</head>


<body>

<div id="topbar">
    <?php include ROOT_PATH_.'/controller/common/modules/topbar.php'; ?>
</div>

<div id="container" class="<? echo $system_part ?>">

    <div id="maincontent">

        <div id="sidebar">
            <?php include ROOT_PATH_.'/controller/common/modules/sidebar.php'; ?>
        </div>






<div id="content" class="layui-form">
	<div class="box member-add-box layui-form">
<h1>添加横幅</h1>

<form id="add-employee-form" method="post" action="detail-add-function.php?sys_part=banner" enctype="multipart/form-data" class="layui-form">



    <fieldset class="layui-elem-field layui-field-title">
        <legend> 基本资料</legend>
    </fieldset>






    <li class="layui-form-item icon">

        <label class="layui-form-label">横幅</label>

        <div class="layui-input-block">

            <?php
            if($detail['icon'] != 'alpha.gif' && $detail['icon'] != ''){
                ?>
                <img src="<?
                if ($detail_storage) {
                    echo $detail_storage;
                } else {
                    echo $site_domin;
                }
                ?>/uploadfiles/<? echo $theme_folder ?>/<? echo  $detail['icon'] ?>" width="100"/>
            <?php }?>
            <a href="detail-delete-img.php?nid=<?php echo $trans_nid ?>&img=icon&sys_part=<? echo $system_part ?>">
                删除</a>
            <span class="title-data">(请上传像素640*415的图片,格式为jpeg)</span>
        </div>
    </li>

    <li class="layui-form-item icon">
        <label class="layui-form-label">上传文件</label>
        <div class="layui-input-block">   <input type="file" name="icon" onchange="fileChange(this);"/></div><em class="explain">(上传列表图标)</em></li>






<!--    <div class="layui-form-item">-->
<!--        <label class="layui-form-label">跳转路径</label>-->
<!--        <div class="layui-input-block">-->
<!--            <input type="text" name="ai_link" value="" class="layui-input" >-->
<!--        </div>-->
<!--        <em class="explain">活动路径：/pages/activity/detail?id=跳转id</em>-->
<!--        <em class="explain">文章路径：/pages/news/detail?id=跳转id</em>-->
<!--        <em class="explain">优惠券路径：/pages/coupon/coupon</em>-->
<!---->
<!--    </div>-->


    <div class="layui-form-item">
        <label class="layui-form-label">排序</label>
        <div class="layui-input-block">
            <input type="text" name="ai_listorder" value="0" class="layui-input" >
        </div>
    </div>




    <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
				<input type="radio" name="ai_status" value="1" title="发布中" checked>
      			<input type="radio" name="ai_status" value="2" title="未通过" >
            	<input type="radio" name="ai_status" value="0" title="待审核">
            </div>
        </div>



        <div class="layui-form-item">
           <div class="layui-input-block">
              <button class="layui-btn" lay-submit lay-filter="formMemberAdd" type="submit">立即提交</button>
              <button type="reset" class="layui-btn layui-btn-primary">重置</button>
           </div>
        </div>
</form>
</div>



<!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>

<?php include ROOT_PATH_ . "/controller/common/modules/footer.php"; ?> </body>
</html>

